import PropTypes from 'prop-types'
import React, { memo } from 'react'
import LongforWrapper from './style'

const HomeLongforItem = memo((props) => {
  const {forData} = props
  return (
    <LongforWrapper>
      <div className="inner">
        <div className="item">
          <img className='cover' src={forData.picture_url} alt="" />
          <div className="bg-cover"></div>
          <div className="info">
            <div className="city">{forData.city}</div>
            <div className="price">均价 {forData.price}</div>
          </div>
        </div>
      </div>
    </LongforWrapper>
  )
})

HomeLongforItem.propTypes = {
  forData: PropTypes.object
}

export default HomeLongforItem